import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('map')
export class Map {
  @ApiProperty({ description: '地图id' })
  @PrimaryGeneratedColumn({ type: 'int', comment: 'id' })
  id: number;

  @ApiProperty({ description: '省份' })
  @Column({ type: 'varchar', comment: '省' })
  province: string;

  @ApiProperty({ description: '市' })
  @Column({ type: 'varchar', comment: '市' })
  city: string;
}
